package gui.main;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import gui.TablaGenerator;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class Film {
	private static JPanel filmkez;
	private static JButton fo_newFilm;
	private static JScrollPane scroll_musor_tabla;
	
	public static JPanel createMusor(){
		filmkez = new JPanel();
		filmkez.setLayout(null);
		fo_newFilm = new JButton("új film");
		scroll_musor_tabla = new JScrollPane(new TablaGenerator(gui.Gui_main.main, "film", 0));
		fo_newFilm.setPreferredSize(new Dimension(100, 100));
		fo_newFilm.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				gui.dialogs.dialogPanels.CreateFilmLetrehozoDialog();
			}
			
		});
		
		fo_newFilm.setBounds(0, 0, 100, 30);
		scroll_musor_tabla.setBounds(0, 40, 655, 475);

		
		filmkez.add(fo_newFilm);
		filmkez.add(scroll_musor_tabla);
		return filmkez;
	}


}
